
//for of 遍历数组 for in 遍历对象
function chongfu(nums){
    let map=new Map()
    for(let i of nums){
        if(map.has(i)) return i;
        map.set(i,1)
    }
    return null
}